// 销售奖励  渠道代理
import request from "../utils/request";

// 添加奖励配置  distribution/reward/addConf
export const AddReward=async (data)=>{
	return request.postRequest("distribution/reward/addConf",data)
}

// 结算周期列表  distribution/reward/cycleList
export const CycleList=async (data)=>{
	return request.postRequest("distribution/reward/cycleList",data)
}

// 结算周期搜索  distribution/reward/search
export const CycleSearch=async (data)=>{
	return request.postRequest("distribution/reward/search",data)
}

// 结算周期查看明细  distribution/reward/checkDetails
export const CheckDetail=async (data)=>{
	return request.postRequest("distribution/reward/checkDetails",data)
}

// 结算周期发放  distribution/reward/grant
export const Grant=async (data)=>{
	return request.postRequest("distribution/reward/grant",data)
}

// 代理商
// 代理等级列表  distribution/proxyConf/levelList
export const AgentLevelList=async (data)=>{
	return request.postRequest("distribution/proxyConf/levelList",data)
}

// 代理商搜索  distribution/proxy/search
export const AgentSearch=async (data)=>{
	return request.postRequest("distribution/proxy/search",data)
}

// 代理商列表  distribution/proxy/list
export const AgenterList=async (data)=>{
	return request.postRequest("distribution/proxy/list",data)
}

// 冻结  distribution/proxy/freeze
export const AgenterFreeze=async (data)=>{
	return request.postRequest("distribution/proxy/freeze",data)
}

// 修改代理等级  distribution/proxy/updateLevel
export const UpdateAgenterLevel=async (data)=>{
	return request.postRequest("distribution/proxy/updateLevel",data)
}

// 添加代理商  distribution/proxy/insert
export const InsertAgenter=async (data)=>{
	return request.postRequest("distribution/proxy/insert",data)
}
//添加代理商选择分销商
export const taderchoose=async ()=>{
	return request.postRequest("distribution/proxy/choose")
}


// 代理设置
// 是否开启代理  distribution/proxyConf/isEnable
export const IfOpen=async (data)=>{
	return request.postRequest("distribution/proxyConf/isEnable",data)
}

// // 代理等级列表  distribution/proxyConf/levelList
// export const AgentLevelList=async (data)=>{
// 	return request.postRequest("distribution/proxyConf/levelList",data)
// }

// 添加代理等级  distribution/proxyConf/insert
export const AddAgentLevel=async (data)=>{
	return request.postRequest("distribution/proxyConf/insert",data)
}

// 删除代理等级  distribution/proxyConf/delete
export const DelAgentLevel=async (data)=>{
	return request.postRequest("distribution/proxyConf/delete",data)
}

// 修改代理等级  distribution/proxyConf/update
export const UpdateAgentLevel=async (data)=>{
	return request.postRequest("distribution/proxyConf/update",data)
}

// 代理订单列表  distribution/proxyOrder/orderList
export const DistriOrderList=async (data)=>{
	return request.postRequest("distribution/proxyOrder/orderList",data)
}


